package com.kimi.abyss.rbac.domain;

import com.kimi.abyss.rbac.api.pojo.SysRole;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.springframework.data.annotation.*;
import org.springframework.data.relational.core.mapping.Table;

import java.time.LocalDateTime;

/**
 * no-op
 *
 * @author kimi
 * @date 2021/7/22
 */
@Table("t_rbac_role")
public class Role extends SysRole {

    public Role(Integer id) {
        super(id);
    }

    @Id
    @Override
    public Integer getId() {
        return super.getId();
    }

    @CreatedDate
    @Override
    public LocalDateTime getCreatedDate() {
        return super.getCreatedDate();
    }

    @CreatedBy
    @Override
    public String getCreatedBy() {
        return super.getCreatedBy();
    }

    @LastModifiedDate
    @Override
    public LocalDateTime getLastModifiedDate() {
        return super.getLastModifiedDate();
    }

    @LastModifiedBy
    @Override
    public String getLastModifiedBy() {
        return super.getLastModifiedBy();
    }

}
